#include <bits/stdc++.h>
using namespace std;
    int cs[10001];
    int ce[10001];
    int jia[10001];
    int ji[10001];
int main()
{
    freopen("detect.in","r",stdin);
    freopen("detect.ans","w",stdout);
    int n;
    cin>>n;
    int l;
    cin>>l;
    int V;
    cin>>V;
for(int i=1;i<=n;i++){
    cin>>cs[i];
}
for(int i=1;i<=n;i++){
    cin>>jia[i];
}
for(int i=1;i<=n;i++){
    cin>> ce[i];
}int ans=0;
for(int i=1;i<=n;i++){
    ji[i]=n*jia[i]+cs[i];
    if(ji[i]>V)
    ans++;
    }
    cout<<ans;
    return 0;
}
